package com.nms.service.impl;

import java.util.List;

import com.nms.dao.DictionaryDao;
import com.nms.model.NewsType;
import com.nms.service.DictionaryService;

public class DictionaryServiceImpl implements DictionaryService {

	private DictionaryDao dictionaryDao;
	@Override
	public List<NewsType> findNewsTypes() {
		return dictionaryDao.findNewsTypes();
	}
	public DictionaryDao getDictionaryDao() {
		return dictionaryDao;
	}
	public void setDictionaryDao(DictionaryDao dictionaryDao) {
		this.dictionaryDao = dictionaryDao;
	}
	@Override
	public List<NewsType> findNewsTypesByType(Integer type) {
		return dictionaryDao.findNewsTypesByType(type);
	}

}
